var express=require('express');
var router=express.Router();

var motionManage=require('../controllers/motionManageCtl.js');
var GetListHtml=motionManage.GetListHtml;
var GetAddHtml=motionManage.GetAddHtml;
var SaveAdd=motionManage.SaveAdd;

var GetPageQuantity=motionManage.GetPageQuantity;
var FirstShow=motionManage.FirstShow;
var ShowPage=motionManage.ShowPage;
var FetchMotion=motionManage.FetchMotion;

var MotionBaseInfo=motionManage.MotionBaseInfo;

var searchMotionThree=motionManage.searchMotionThree;

var SearchMotion=motionManage.SearchMotion;

var PageQuantity=motionManage.PageQuantity;
var PageContent=motionManage.PageContent;

var ConditionMotion=motionManage.ConditionMotion;

var PictureTest=motionManage.PictureTest;
var CheckChongming=motionManage.CheckChongming;

router.get('/getListHtml',GetListHtml);
router.get('/getAddHtml',GetAddHtml);

router.post('/saveAdd',SaveAdd);

router.get('/getPageQuantity',GetPageQuantity);
router.get('/firstShow',FirstShow);
router.post('/showPage',ShowPage);

router.post('/fetchMotion',FetchMotion);

router.get('/motionBaseInfo',MotionBaseInfo);

router.post('/searchMotionThree',searchMotionThree);//比较fetchMotion
router.post('/searchMotion',SearchMotion);//component

router.post('/pageQuantity',PageQuantity); //获取对应条件的页数
router.post('/pageContent',PageContent);   //获取对应条件的内容

router.post('/conditionMotion',ConditionMotion);

router.post('/pictureTest',PictureTest);

router.post('/checkChongming',CheckChongming);


module.exports=router;
